package com.herench.bridge;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;

/**
 * Created by ThinkPad on 2018/9/26.
 */
public class Hests {

    public static void main(String[] args) throws Exception{
        FileReader reader = new FileReader(new File("D:/repost.log"));
        BufferedReader bf = new BufferedReader(reader);
        FileWriter writer = new FileWriter("D:/repost1.log");
        String str;
        // 按行读取字符串
        while ((str = bf.readLine()) != null) {
            writer.write(str);
            
            writer.write("\r");
        }
        bf.close();
        reader.close();
        writer.close();
    }


}
